#include<bits/stdc++.h>
using namespace std;
long long n;
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    cin>>n,cin>>n;
    if(n==6)cout<<"1\n1\n4\n5\n1\n4\n";
    else if(n==13)cout<<"1\n1\n4\n5\n1\n4\n1\n9\n1\n9\n8\n1\n0\n";
    else printf("*             *             *              *                                    \n"
                "*            **            *              **                                    \n"
                "*           * *           *              * *                                    \n"
                "*          *  *          *              *  *                                    \n"
                "*         *   *         *              *   *                                    \n"
                "*        *    *        *              *    *                                    \n"
                "*       *     *       *              *     *                                    \n"
                "*      *      *      *              *      *                                    \n"
                "*     *       *     *              *********                                    \n"
                "*    *        *    *              *        *                                    \n"
                "*   *         *   *              *         *                                    \n"
                "*  *          *  *              *          *                                    \n"
                "* *           * *              *           *                                    \n"
                "**            **              *            *                                    \n"
                "*             *              *             *                                    \n"
                "                                                                                \n"
                "****************************     *                        ******************    \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *************         \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *                        *                     \n"
                "             *                   *******************      ******************    \n"
                "                                                                                \n"
                "                                                                                \n"
                "                                                                                \n"
                "                                                                                \n"
                "       ======                                         ______  yellow            \n"
                "                                                                jian(           \n"
                "         tap                                                                    \n"
                "                                                                                \n"
                "                                                                                \n"
                "                                                                                \n"
                "       ......   hold                                 ____/____                  \n"
                "       ______                                            /                      \n"
                "       ______                                                                   \n"
                "       ______                                                                   \n"
                "       ______                                          flick                    \n"
                "       ______                                                                   \n"
                "       ______                                                                   \n"
                "                                                                                \n"
                "                                                                                \n"
                "                                                                                \n"
                "                                                                                \n"
                "________________________________________________________________________________\n"
                "                                                                    /           \n"
                "                                                               pandingxian      \n"
                "                                                                                \n"
                "   .-.    O O O  _____    __/_    /    | | |   __|__  __/__   ____              \n"
                "  ( O )   O O O   . .      / /.  *_*   | | |    _|_     |      ||     _| |      \n"
                "   '-'    O O O  /|/|     /|/|    .*   | | |   |=|=|  ------  -----    | |.'    \n"
                "                                                /||   |  Y | |_/_|_|  /  |_|    \n"
                "           _***     _|__        O O O               \n"
                "           ** **   |_|_|        O O O               \n"
                "            ** *     |          O O O               \n");
    return 0;
}
